﻿<?
/*20210530
  //我是所有页面通用的引入设置
  //一些通用的例如cheack session，config引入的，通用的地方，都集中都这里。
*/

//声明启用session
session_start();

//鉴权
include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/script/check_session.php");



//载入controller
//todo 后续应该载入config即可
include_once($_SERVER['DOCUMENT_ROOT']."/config_controller.php");


//获取主题设置及数据库
include_once (ROOT_PATH_.'/front/'  . $theme_folder . '/connection.php' );
include_once (ROOT_PATH_.'/front/'  . $theme_folder . '/config.php' );


//用于补充系统功能，修复缺陷
include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/script/patch.php");


//用于控制统一数据库
include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/script/database_update.php");


//记录后台访问页面
include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/script/controller_access_log.php");
//载入系统的设置
include_once('model/setting.php');



//获取传递的所属子系统
$extender_now = $_REQUEST ['now_extender'];
$system_part = $_REQUEST ['sys_part'];


//*必须放在connection之后；检车session，和记录登录操作；
//似乎是和购物车相关，也有记录session的作用。20231028清除
//include_once ROOT_PATH_.'/controller/coresection/check_session.php';

?>